package com.example.demo.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.example.demo.dao.UserInfoRepository;
import com.example.demo.entity.UserInfo;

@Service
public class UserInfoService {
	
	@Autowired
	private UserInfoRepository userInfoRepository;
	
	public UserInfo findByUserName(String userName){
		
		return userInfoRepository.findByUsername(userName);
	}
}
